<!DOCTYPE html>
<html>
<!-- <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>欢迎页</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <meta name="renderer" content="webkit">
    <link href="/js/layui/css/layui.css" rel="stylesheet">
</head> -->
<head>
  <meta charset="utf-8">
  <title>欢迎页</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="/js/layui/css/layui.css"  media="all">
</head>
<body>

   <!--  <div class="panel-heading">了解BootDo</div>
    <div style="padding: 10px 0 20px 10px;">
        <h3>&nbsp;&nbsp;&nbsp;项目介绍</h3>
        <ul>
            <li>面向学习型的开源框架，简洁高效，减少过渡封装，展现技术本质</li>
            <li>Springboot作为基础框架，使用mybatis作为持久层框架</li>
            <li>使用官方推荐的thymeleaf做为模板引擎，shiro作为安全框架,主流技术，“一网打尽”</li>
            <li>极简配置，一键前后台代码生成</li>
        </ul>

        <h3>&nbsp;&nbsp;&nbsp;获取源码</h3>
        <ul>
            <li>Github地址：<a href="https://github.com/lcg0124/bootdo.git" th:href="@{https://github.com/lcg0124/bootdo.git}" target="_blank">https://github.com/lcg0124/bootdo.git</a></li>
            <li>Oschina地址：<a href="https://gitee.com/lcg0124/bootdo.git" target="_blank">https://gitee.com/lcg0124/bootdo.git</a></li>
        </ul>

        <h3>&nbsp;&nbsp;&nbsp;官方QQ群</h3>
        <ul>
            <li>点击链接加入群【BootDo交流群】：<a href="https://jq.qq.com/?_wv=1027&k=5EYXfiZ">669039323</a></li>
        </ul>
    </div> -->
<div th:if="${isMerchant}" >	 	
	 	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  			<legend>商户交易信息</legend>
		</fieldset>
		
		<div class="layui-row">
		    <div class="layui-col-xs6">
		      <div class="grid-demo grid-demo-bg1">
			    <fieldset class="layui-elem-field">
			  		<legend>交易金额：</legend>
			  		<div class="layui-field-box" >
			    		<span style="font-size:20px" th:text="${merchantInfo.transAmount}" />
			  		</div>
			  	</fieldset>
			  	<fieldset class="layui-elem-field">
			  		<legend>交易笔数：</legend>
			  		<div class="layui-field-box">
			    		<span style="font-size:20px" th:text="${merchantInfo.transNum}" />
			  		</div>
			  	</fieldset>
			  	<fieldset class="layui-elem-field">
			  		<legend>成功金额：</legend>
			  		<div class="layui-field-box">
			    		<span style="font-size:20px" th:text="${merchantInfo.successAmount}" />
			  		</div>
			  	</fieldset>
			  	<fieldset class="layui-elem-field">
			  		<legend>成功笔数：</legend>
			  		<div class="layui-field-box">
			    		<span style="font-size:20px" th:text="${merchantInfo.successNum}" />
			  		</div>
			  	</fieldset>
			  	<fieldset class="layui-elem-field">
			  		<legend>余额：</legend>
			  		<div class="layui-field-box">
			    		<span style="font-size:20px" th:text="${merchantInfo.freezeBalance}" />
			  		</div>
			  	</fieldset>
			  	<fieldset class="layui-elem-field">
			  		<legend>可提现余额：</legend>
			  		<div class="layui-field-box">
			    		<span style="font-size:20px" th:text="${merchantInfo.balance}" />
			  		</div>
				</fieldset>
		      </div>
		    </div>
		    
		    <div class="layui-col-xs6">
				<div class="grid-demo">
				    <fieldset class="layui-elem-field">
				  		<legend>昨日交易金额：</legend>
				  		<div class="layui-field-box" >
				    		<span style="font-size:20px" th:text="${yestMer.transAmount}" />
				  		</div>
				  	</fieldset>
				  	<fieldset class="layui-elem-field">
				  		<legend>昨日交易笔数：</legend>
				  		<div class="layui-field-box">
				    		<span style="font-size:20px" th:text="${yestMer.transNum}" />
				  		</div>
				  	</fieldset>
				  	<fieldset class="layui-elem-field">
				  		<legend>昨日成功金额：</legend>
				  		<div class="layui-field-box">
				    		<span style="font-size:20px" th:text="${yestMer.successAmount}" />
				  		</div>
				  	</fieldset>
				  	<fieldset class="layui-elem-field">
				  		<legend>昨日成功笔数：</legend>
				  		<div class="layui-field-box">
				    		<span style="font-size:20px" th:text="${yestMer.successNum}" />
				  		</div>
				  	</fieldset>
			 	 </div>
    		</div>	
		</div>
</div>
<div th:if="${isAgent}" >	 	
	 	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  			<legend>代理交易信息</legend>
		</fieldset>
		
		<div class="layui-row">
		    <div class="layui-col-xs6">
		      	<div class="grid-demo grid-demo-bg1">
			    	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
					  	<legend>今日交易</legend>
					</fieldset>  
					<table class="layui-table" lay-skin="line">
					  <colgroup>
					    <col width="200">
					    <col width="200">
					    <col width="200">
					    <col width="200">
					    <col width="200">
					    <col width="200">
					  </colgroup>
					  <thead>
					    <tr>
					      <th>产品</th>
					      <th>交易金额</th>
					      <th>交易总数</th>
					      <th>成功金额</th>
					      <th>成功数</th>
					      <th>成功率</th>
					    </tr> 
					  </thead>
					  <tbody>
					    <tr th:each="agentTrans : ${currentAgent.agentTransInfo}">
					      <td th:text="${agentTrans.proName}"></td>
					      <td th:text="${agentTrans.transAmount}"></td>
					      <td th:text="${agentTrans.transNum}"></td>
					      <td th:text="${agentTrans.successAmount}"></td>
					      <td th:text="${agentTrans.successNum}"></td>
					      <td th:text="${agentTrans.sucRate}"></td>
					    </tr>					    
					     <tr>
					      <td>总数</td>
					      <td th:text="${currentAgent.transAmount}"></td>
					      <td th:text="${currentAgent.transNum}"></td>
					      <td th:text="${currentAgent.successAmount}"></td>
					      <td th:text="${currentAgent.successNum}"></td>
					      <td th:text="${currentAgent.sucRate}"></td>
					    </tr>
					  </tbody>
					</table>   
		      	</div>
		    </div>
		    
		    <div class="layui-col-xs6">
				<div class="grid-demo">
				    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
					  	<legend>昨日交易</legend>
					</fieldset>  
					<table class="layui-table" lay-skin="line">
					  <colgroup>
					    <col width="200">
					    <col width="200">
					    <col width="200">
					    <col width="200">
					    <col width="200">
					    <col width="200">
					  </colgroup>
					  <thead>
					    <tr>
					      <th>产品</th>
					      <th>交易金额</th>
					      <th>交易总数</th>
					      <th>成功金额</th>
					      <th>成功数</th>
					      <th>成功率</th>
					    </tr> 
					  </thead>
					  <tbody>
					    <tr th:each="agentTrans : ${yestAgent.agentTransInfo}">
					      <td th:text="${agentTrans.proName}"></td>
					      <td th:text="${agentTrans.transAmount}"></td>
					      <td th:text="${agentTrans.transNum}"></td>
					      <td th:text="${agentTrans.successAmount}"></td>
					      <td th:text="${agentTrans.successNum}"></td>
					      <td th:text="${agentTrans.sucRate}"></td>
					    </tr>
					    <tr>
					      <td>总数</td>
					      <td th:text="${yestAgent.transAmount}"></td>
					      <td th:text="${yestAgent.transNum}"></td>
					      <td th:text="${yestAgent.successAmount}"></td>
					      <td th:text="${yestAgent.successNum}"></td>
					      <td th:text="${yestAgent.sucRate}"></td>
					    </tr>					    
					  </tbody>
					</table>   
			  	</div>
    		</div>	
		</div>
</div>
<script src="/js/layui/layui.all.js"></script>
</body>
</html>